import jieba as j

s = '用粉碎机粉碎粉碎机粉碎机会被粉碎机粉碎吗'
w = j.cut(s)
q = '/'.join(w)
print(q)

#用户自定义词库
a = '编程猫爱吃土豆和西红柿'
j.load_userdict('dict.txt')
b = j.cut(a)
c = '/'.join(b)
print(c)
